﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Toochs
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            ucToochs1.Init();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            ucToochs1.Init("RU3,LU5,LUE,LU3,RDC,LDE");
        }

        private void ucToochs1_UcToochStateChanged(object sender, Umer.HIS.Client.BVL.Common.UserControls.UcToochs.ToochChangeEvent e)
        {
            txtToochs.Text = e.Message;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            txtToochs.Text = ucToochs1.GetToochState();
        }
    }
}
